/*
 * @Author: xmily
 * @Date: 2022-02-28 23:18:37
 * @LastEditors: xmily
 * @LastEditTime: 2022-08-10 00:04:57
 * @FilePath: \glxxapi\models\AfterClassService\activitCode.js
 * @Description: 
 * 课后服务国家系统学有优教APP学生激活码
 * Copyright (c) 2022 by xmily/mxthink.com.cn, All Rights Reserved. 
 */
var mongoose = require('../../cfg/dbconfig.js')

var activitCodeSchema=new mongoose.Schema({
    "姓名": String,
    "班级": String,
    "激活码": String,
},{collection:'appactive'})

activitCodeSchema.statics.GetByQuery=async function(query,fields){
    fields=fields||{};
    let result= await this.findOne(query,fields).exec();
    return result
}


module.exports = mongoose.model('appactive', activitCodeSchema)